package gongshw.bank.action.business;

import gongshw.bank.model.User;

public class Advertise {
	
	private float money = 20000;
	private User user;
	
	public Advertise() {
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public boolean showAd(){
		if (user==null) {
			return false;
		} else {
			return user.getMoney()>getMoney();	
		}
	}

	public float getMoney() {
		return money;
	}

	public void setMoney(float money) {
		this.money = money;
	}
	
}
